interface fetchPointsMallGoodsDetailAPIResData {
  code: number
  msg: string
  time: string
  data: GoodsDetail
}

interface fetchPointsMallGoodsDetailAPIParams {
  id: string
}

export function fetchPointsMallGoodsDetailAPI(params: fetchPointsMallGoodsDetailAPIParams, token: string) {
  return httpInstance.get<fetchPointsMallGoodsDetailAPIResData, fetchPointsMallGoodsDetailAPIParams>(
    '/api/score/detail',
    { params, headers: { token } },
  )
}
